﻿using RestSharp;
using Ymatou.ServiceCenter;
using YmtAuth.AppService;
using YmtAuth.Dto;
using YmtSystem.CrossCutting;
using ResetService = ServiceStack.Service;

namespace YmtAuth.Web.Handlerv2
{
    
    public class LoginIdUpdateHandler : ResetService
    {
        private IUserBillsAppService BillsAppService { get { return LocalServiceLocator.GetService<IUserBillsAppService>(); } }

        [ServiceRegister("/json/reply/LoginIdUpdateRequestDto", Method.POST)]
        public object Post(LoginIdUpdateRequestDto request)
        {
            return BillsAppService.UpdateLoginId(request);
        }
    }
}